completed the implementation of user authentication -w one error in the model