Added pages class
Adapted to new pages class
Now uses user class. Replaced pointless error message with something more descriptive
Added viewport meta tag for mobile devices