added database lookup for users login page