added user-registration and email
fixed registration, put search behind login