Implemented authenticate user and logout. AutheticationException still missing tho