Fixes to login forms, and started support for installed applications (for Cordova)