added error when repeated email and some other ui improvements