a login bug after User class change and email bug fixed.