Remove sign_in path and redirect to homepage or connect depending on path