added some login features