working alerts for errors when loggin in and signing up