admin and user redirect,  added edit constrain

added constrain of date in edit