check user email at main controller
add login check