Moved middleware to accounts

Had to move it since it belongs to user