removed resolve from login and register controller