Fixed up validation errors in the restful login and logout