Added Pattern checks for Bean variables in Edit