added logic for visitors to create accounts