User login working with custom user class