Coding gyaan……
Next time before you code…….make a list(Excel sheet ) of all tests  to be done on the application.