added function to redirect users to destination page after logging in. previously if they were not logged in but had clicked on a link to a page or view they would just be taken to the server home after logging in.