Move the login related functions to their own service plugin