added forgot password functionality
autologin on registration