Login now checks if required params exists