FIXED registration- now works with email