Fixed login
Fixed register & checkLoginStatus.