Never regret failure. Every failure has a message to be more committed, more focused and if necessary change the direction for the endeavor. Error is natural process of any endeavor, if there is some deviation knowingly or unknowingly from right course of action. Error is not to dishearten, error is there to make you more stronger in attitude and approach. Be focused and be committed and enjoy eventful life.