added functions to set session and server
method to get User by his username
check if username is exists
check if username is valid