added error catcher to login?