Merge Login UI with Database