Added login functionality - not working yet