Username/Email registration validation

Added extra validation on the registration page that checks whether the
username or email already exists.