fix whitespace and indentation

remove deprecated code.
new route for user page
after login, user page will always only point to the logged in user's page even if the URL is manipulated.