Moved credentials to template