redirect to root if login info invalid
add alert when change email is invalid