build for login error handling, etc