login error handling, register wip