fix bugs in sessionsHelper
update user bugs
add edit user template