Login/Register tweaks

Added tighter validation rules and fixed a bug for newly registered
users. Added new logic to index page to handle the view if there are no
invoices created.