register, profile and some additional security

Signed-off-by: Alexander Skjolden <alex@plastboks.net>