added login and register method in myService