created user functions and page

change details, change password and user page to view own policies,
also cleaned up a lot of redirecting and links