Added ajax actions to login/register forms