adding in error handling
adding in forgot template