login complete

I will add another function tommorrow