catch null pointer when user does not exist inside a particular realm
check whether user is already authenticated