Finished sign in and out

Fixed failing tests