Added function to query for a user based on username