RESTful login fix 4