login with offline validation with inline error messages