moved validation from editProfile view to user model

I have also removed the table from the top half of the view to
help make the code more readable.