[FIX] better error reporting for login