#gjmsdev - Started login function.