added the client side validation to apply leave #5
added the jquery-turbolink as normal $.ready will not work on turbolinks #5