private void loginButton (ActionEvent event)
{
String t = Input.getText();
System.out.println(t);
validateUsername(t);
}
<
You need to check whether
Input
actually contains anything.
Also, in future please help us by indicating where in the code the error(s) occurs.