Finishing server stuff for login