fix database, login, add send mail function