add login and registration logic
add session and registration logic