Registration and logout fixed

Users can now logout, however their session info is still stored in the
site database, will figure this out soon. Registration form fixed and
loading perfectly however the actual registration process has not been
tested yet.