cleaned up templates and added password change functionality.