RESTful login methode