fixed login error, removed static variables in logincontroller
indexeddb and js search patient