user login now works (thanks to Joe) and have now added user registration, still need to set permissions for accessing different pages etc