Added user login functions.