login, register and msg in database working