Crude login logic implemented