Started base login function