Changed login handler to set client's accessLevel