Fix database's password checking
Change edit window's layout