implementation of Login for different user