login + input functionality