update login to use alert