login logic/backend implemented for javaME