Added getUser to login javascript