Added pseudo login function