Custom authentication with JSON request type login