finished implementing device page (#9)
added final validation of registrate form (#4)