adding more authentication functionlity to auth feature