implementing login the new way