added possibility saving credentials in db, still need proper eror handling mechanism