Login user on register.
Minor changes on exception handler.