Login functions added 2