updated login fragments functionallity