added session['prevPage'] to pages (exc. registr)