Added authentication of user on server