integrated devise & database authentication