You really have two questions here:
1)
Take a look at www.thenelson.name/#ReportFormTricks, " Check for required items" to see the events you need to capture to accomplish this with a bound form.
2)
Take a look at www.thenelson.name/#Login to see what you need to do to accomplish this.