Added error check for null fields in login