added login checks and started reader