added conditional to header
added pas into the user controller