Update controller and add validate to post title length