updated login module with more functionality... register and logout. The logout isn't working. we need to look into how sessions work in more detail.