Verifying if params[:user] is present before autheticating user through API