Added database authentication&login