added ajax when adding collaborators. after registration redirects to login.