Created more test cases in accounts app

Modified the views for accounts to fix some errors