solving login problem