RESTful login fix 3