added functioning registration page