now UIAuthentication does its work, but still some bugs