Added logout function in AuthController and added is_admin attribute in User