registration and login now are working with auto-login on registration