remove unneeded function
refactor code to remove clutter (major change)
add ip and time for registration and login