Front-end channel security and login #2

PR for #2