Server can now loginUser and registerUser