Changed query type for getting username for login form