error handling, register jumps to login