modify models so user -> document -> documentversion and also creating function in application controller so login redirects to users page