define user in brian's view function