Deserializing user from the database.