stores username and password on database to later retrieve it when user logs back in