Creating the Server Login Code