changed datetime() for now()
anonymous login bug fixes