Fixing bugs on send mail and login