remove trailing whitespace
check github authenticate in before_filter