added mysql database support, login with password hashing and auto registration