working on handeling login