fixed a lot of stuff with the profile page.
added validation.
fixed issues with managing the GET and POST requests and validation.
created templates for the form fields.