login and app templates