RESTful login fix