Modal closing after sign in - from bootstrap to foundation