Update Authenticator.java

Now internally extracts username and password. Sets failed attribute when validation or login fails.