changed View Class to create variables and create register form