Added basic logic for register. You can register account to database.