login implemented and working