add before filter to user controller
adds user controller logic for sign in and changes routes