Generic applications

Fixed validation of input to prevent incorrect submission messages and added verification of Portuguese ID numbers. Implemented explicit submission of the application. Modified the letters of recommendation to allow deletion of them while not received and to stop requests to self. Disabled modification of the application if the deadline already passed.