Fixed some issues with null values on user login.