User login working with client-side