Email length set to be equal to the username field in the Sign Up Form

We use Email address as username, and a user tried to log in using a very long email Address, breaking the database constrain (we use the email as username and emai field.)