Played around with Layouts. Added a NoAuthenticationException to deal with the NullPointerExceptions when the Authentication object is attempted to be accessed before the login is complete.