Edit profile finished

Added an edit profile success page and lots of input validation to
finish off updating the user's details.