Fixing problem for sending invalid activation emails and adding register link on login page