Made modifications in validations and added page rendering, still need to fix page switch if logged in