Added login function. Works to login with temp acc.