Added handler to fetch user API key using username and password