Fixed sessions. Modified endpoint for saving avatar