Move application helper to controller, write require_signin method