initial import of base template
updated template to handle user login status and credits