Core pr 5

Fixed some user redirects and coding style.
There have been some issue where users could pres the back button an see the previous users profile page and loans in chrome. This fixes that issue.