added validation of application_name

to comply with code review